import {lazy} from "react"

const routes=[
  {
    path:"/",
    to:"/home/shouye"
  },
  {
    path:"/home",
    element:lazy(()=>import ("../page/Home")),
    children:[
      {
        path:"/home/shouye",
        element:lazy(()=>import ("../page/index/Shouye"))
      },
      {
        path:"/home/fenlei",
        element:lazy(()=>import ("../page/index/Fenlei"))
      },
      {
        path:"/home/jingxi",
        element:lazy(()=>import ("../page/index/Jingxi"))
      },
      {
        path:"/home/shop",
        element:lazy(()=>import ("../page/index/Shop"))
      },
      {
        path:"/home/login",
        element:lazy(()=>import ("../page/index/Login"))
      }
    ]
  }
]

export default routes;